// import axios from 'axios'
import instance from '../utils/request'

//投诉工单率
export function getComplainInfo(param) {
  return instance({
    url: '/complain/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//投诉满意率
export function getSatisfyInfo(param) {
  return instance({
    url: '/satisfy/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//5GtoB网络组网架构
export function getArchitecture(param) {
  return instance({
    url: '/net2b-structure/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//5G专网项目交付情况
export function getDelivery(param) {
  return instance({
    url: '/net2b-vpn-project/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//5GtoB网络运行情况
export function getOperation(param) {
  return instance({
    url: '/net2b-runnability/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//资源池
export function getResource(param) {
  return instance({
    url: '/resource-pool/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//资源池明细
export function getResourceDetails(param) {
  return instance({
    url: '/pool-detail/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//机房机架
export function getMachineRoom(param) {
  return instance({
    url: '/frame/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//流量
export function getFlow(param) {
  return instance({
    url: '/flow/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//app流量排名
export function getTrafficRanking(param) {
  return instance({
    url: '/app-flow/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//客户/安全产品接口
export function getCustomer(param) {
  return instance({
    url: '/customer/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}

//用户使用量
export function getUserUsage(param) {
  return instance({
    url: '/cus-use/all',
    method: 'get',
    params: param,
    headers: {
      'tenant-id': 1,
      'Authorization': 'Bearer test1'
    }
  })
}